package com.ssm.dao;

import com.ssm.entity.Appointment;
import org.apache.ibatis.annotations.Param;

/**
 * @author Wangjian
 * @title: Appointment
 * @projectName ssmTest
 * @description: TODO
 * @date 2019/8/69:55
 */
public interface AppointmentDao {
    /** 
     * @author WangJian
     * @Description //TODO 插入预约图书记录
     * @date 2019/8/6
     * @params [bookId, studentId] 
     * @return 插入行数
     */
    int insertAppointment(@Param("bookId") long bookId, @Param("studentId") long studentId);
    /** 
     * @author WangJian
     * @Description //TODO 通过主键查询预约图书记录,并且携带实体
     * @date 2019/8/6
     * @params [bookId, studentId] 
     * @return com.ssm.dao.Appointment
     */
    Appointment queryByKeyWithBook(@Param("bookId") long bookId, @Param("studentId") long studentId);
}
